package com.hqyj.service;

import com.hqyj.pojo.UserPower;

import java.util.Map;

/**
 * Created with Intellij IDEA.
 * User:LiTao
 * Date:2022/8/30
 * Time:14:14
 * Description:
 */
public interface UserPowerService {

    //分页，全查
    Map<String,Object> selectAll(int pageNum,int pageSize,String remark);

    //添加用户
    Map<String,Object> add(String power,String remark);

    //回显
    Map<String,Object> update(int id);

    //修改
    Map<String,Object> updateUser(UserPower userPower);

    //删除
    Map<String,Object> deleteUser(int id);

    /**
     * 获取所有权限
     * @return
     */
    Map<String,Object> getAllPower();
}
